********************************************************************************
** OWWA-online master file

* Version history
* 13.5.24 Vojta

clear all 
set more off
global date 190903
global lo hk
set seed 840801
set scheme sj
** Set Directories *************************************************************

if "`c(username)'" == "vojtabartos" { // change to your useername
	global dropbox "/Users/vojtabartos/DEMM - UNIMI Dropbox/Vojtech Bartos/PHL OWWA online experiment/online_experiment/Data/replication" 
	}
	
global rawdatapath "$dropbox/Analysis/0_raw_data"
global cleandatapath "$dropbox/Analysis/1_clean_data"
global dopath "$dropbox/Analysis/02_dofiles"
global logpath "$dropbox/Analysis/03_logfiles"
global outputpath "$dropbox/Analysis/04_output"

* Programs required ************************************************************
{
* All programs that need to be installed to be listed here together with install command (ssc install xxx)
local required_ados "moremata mhtreg estout" //add the required ados here//
foreach x of local required_ados {
	capture findfile `x'.ado		
	if _rc==601 {
	ssc install `x', replace
	}
}
}

** General options *******************************************************************

global esttab_opt_stats "stats(N, fmt(0) labels("Observations"))"
global cells "compress b(%3.2f) se(%3.2f) star(* 0.10 ** 0.05 *** 0.01) noomit nobase drop(`covars')"
global tex "collabels(,none)"

** Run files *******************************************************************

* 1. Prepare HK data
do "$dopath/01_master_cn"

* 2. Prepare KSA/UAE data
do "$dopath/01_master_ar"

* 3. Analysis
do "$dopath/04_analysis"
